//
//  TradingRecordHeaderView.swift
//  RPay
//
//  Created by CharlieLiao on 2017/7/8.
//  Copyright © 2017年 Charlie. All rights reserved.
//

import UIKit
import SnapKit

class TradingRecordHeaderView: UITableViewHeaderFooterView {
    
    override init(reuseIdentifier: String?) {
        super.init(reuseIdentifier: reuseIdentifier)
        contentView.backgroundColor = UIColor.appBackground
    }
    
    required init(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)!
    }
    
    var _textLabel: UILabel!
    override var textLabel: UILabel? {
        if _textLabel == nil {
            _textLabel = UILabel()
            contentView.addSubview(_textLabel)
            _textLabel!.snp.makeConstraints({ (maker) in
                maker.left.equalTo(21)
                maker.bottom.equalTo(-10)
                maker.height.equalTo(22)
            })
        }
        _textLabel!.font = UIFont.appRegularFont(ofPX: 16)
        _textLabel!.textColor = UIColor.appText
        return _textLabel
    }
    
}
